package per.jerry.flightinformation.entity;

import java.util.Date;
import java.util.List;

/**
 * 航班信息类
 * 
 */
public class Flights {
	/*
	 * TODO 将各个字段的信息注释添加起来
	 */
	private int id;
	private String flightCode;
	private Date searchDate;
	private String airline;
	private String type;
	private int takeAirportId;
	private int landingAirportId;
	private Date takeTime;
	private Date landingTime;
	private String stopAirport;
	private String flightTime;
	private double referencePrice;
	
	/**
	 * 多对一的关联对象——起飞机场
	 */
	private Airports takeAirports;
	/**
	 * 多对一的关联对象——降落机场
	 */
	private Airports landingAirports;
	/**
	 * 一对多的关联对象——航班对应的机票集合
	 */
	private List<FlightTickets> flightTickets;
	
	
	public Flights() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFlightCode() {
		return flightCode;
	}

	public void setFlightCode(String flightCode) {
		this.flightCode = flightCode;
	}

	public Date getSearchDate() {
		return searchDate;
	}

	public void setSearchDate(Date searchDate) {
		this.searchDate = searchDate;
	}

	public String getAirline() {
		return airline;
	}

	public void setAirline(String airline) {
		this.airline = airline;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getTakeAirportId() {
		return takeAirportId;
	}

	public void setTakeAirportId(int takeAirportId) {
		this.takeAirportId = takeAirportId;
	}

	public int getLandingAirportId() {
		return landingAirportId;
	}

	public void setLandingAirportId(int landingAirportId) {
		this.landingAirportId = landingAirportId;
	}

	public Date getTakeTime() {
		return takeTime;
	}

	public void setTakeTime(Date takeTime) {
		this.takeTime = takeTime;
	}

	public Date getLandingTime() {
		return landingTime;
	}

	public void setLandingTime(Date landingTime) {
		this.landingTime = landingTime;
	}

	public String getStopAirport() {
		return stopAirport;
	}

	public void setStopAirport(String stopAirport) {
		this.stopAirport = stopAirport;
	}

	public String getFlightTime() {
		return flightTime;
	}

	public void setFlightTime(String flightTime) {
		this.flightTime = flightTime;
	}

	public double getReferencePrice() {
		return referencePrice;
	}

	public void setReferencePrice(double referencePrice) {
		this.referencePrice = referencePrice;
	}

	public Airports getTakeAirports() {
		return takeAirports;
	}

	public void setTakeAirports(Airports takeAirports) {
		this.takeAirports = takeAirports;
	}

	public Airports getLandingAirports() {
		return landingAirports;
	}

	public void setLandingAirports(Airports landingAirports) {
		this.landingAirports = landingAirports;
	}

	public List<FlightTickets> getFlightTickets() {
		return flightTickets;
	}

	public void setFlightTickets(List<FlightTickets> flightTickets) {
		this.flightTickets = flightTickets;
	}

}
